import { length, props, defaultTo, pipe } from 'ramda'

export const lenNotEmpty = (val, propName) => {
  const func = pipe(props([propName]), defaultTo([]), length)
  return func(val) !== 0
}
